package com.app.internationaltravel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_user")
public class User {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private String phone;
    private String password;
    private Integer flag;
    private Date ctime;

    public User(String name, String phone, String password, Integer flag, Date ctime) {
        this.name = name;
        this.phone = phone;
        this.password = password;
        this.flag = flag;
        this.ctime = ctime;
    }
}
